<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/2/5 0005
 * Time: 下午 5:10
 */
namespace app\admin\traits\model\questions;

Trait Answer {

    public function question()
    {
        return $this->hasOne('Question', 'id', 'qid');
    }

    public function opt()
    {
        return $this->hasMany('Opt', 'aid');
    }

}